//
//  DiscoverSessionView.h
//  MindBox
//
//  Created by MS on 16-1-6.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Discover_Mind_Model.h"
#import "Discover_Welfare_Model.h"

@class DiscoverSessionView;
@protocol DiscoverSessionViewDelegate <NSObject>
/**
 *  DiscoverSessionView
 *
 *  @param discoverSessionView DiscoverSessionView
 *  @param activity            点击的cell参数：activity
 *  @param goods                点击的商品
 *  @param index               为“-1”点击了全部，>=0点击了goods
 */
-(void)discoverMindSessionViewDidClick:(DiscoverSessionView *)discoverSessionView activity:(Activity *)activity goods:(Goods *)goods index:(NSInteger)index;
/**
 *  DiscoverSessionView
 *  @param welfare    welfare模型
    welfareGoods       Discover_Goods模型
 *  @param index       点击的位置
 */
-(void)discoverWelfareSessionViewDidClick:(DiscoverSessionView *)discoverSessionView  welfare:(Discover_Welfare *)welfare discover_goods:(Discover_Goods *)welfareGoods index:(NSInteger)index;

@end

@interface DiscoverSessionView : UIView
@property (nonatomic,weak) UITableView * tableView;
/**
 *  福利活动数据源
 */
@property (nonatomic,strong) Discover_Welfare * welfare;
/**
 *  心意专场数据源
 */
@property (nonatomic,strong) NSArray * activityArray;

@property (nonatomic,weak) id<DiscoverSessionViewDelegate>delegate;

@end
